
function getYearList(){
	 let yearArray = []
	 for (let i = 1; i <= 30; i++) {
		yearArray.push({
			value: i * 12,
			name: `${i}年`
		})
	 }
	 return yearArray
}

module.exports = {
	yearList: getYearList(),
	//计算方式
	loanTypeList: [{
			name: '商业贷款',
			value: '0'
		},
		{
			name: '公积金贷款',
			value: '1'
		},{
			name: '组合贷款',
			value: '2'
		}
	],
	
	//计算方式
	calculationTypeList: [{
			name: '按房屋总价',
			value: '0'
		},
		{
			name: '按贷款总额',
			value: '1'
		}
	],
	//首付比例
	percentList: [{
			value: 0.2,
			name: '20%'
		},
		{
			value: 0.25,
			name: '25%'
		},
		{
			value: 0.3,
			name: '30%'
		},
		{
			value: 0.35,
			name: '35%'
		},
		{
			value: 0.4,
			name: '40%'
		},
		{
			value: 0.45,
			name: '45%'
		},
		{
			value: 0.5,
			name: '50%'
		},
		{
			value: 0.55,
			name: '55%'
		},
		{
			value: 0.6,
			name: '60%'
		},
		{
			value: 0.65,
			name: '65%'
		},
		{
			value: 0.7,
			name: '70%'
		},
		{
			value: 0.75,
			name: '75%'
		},
		{
			value: 0.8,
			name: '80%'
		},
	],
	// 利率计算方式
	rateTypeList: [
		{
			value: '2',
			name: '按最新LPR'
		},
		
		{
			value: '1',
			name: '按旧版本基准利率'
		},
	],
	// 住房公积金利率表
	rateListProvident: [{
			value: 3.1,
			name: "基准利率(3.1%)",
			type: "value"
		},
		{
			value: 3.575,
			name: "基准利率(3.575%)",
			type: "value"
		},
		{
			value: 0,
			name: "自定义利率",
			type: "setting"
		},
	],
	// 商业贷利率表
	rateListBusiness: [{
			value: 1,
			name: "基准利率(4.9%)"
		},
		{
			value: 0.7,
			name: "基准利率7折(3.43%)"
		},
		{
			value: 0.8,
			name: "基准利率8折(3.92%)"
		},
		{
			value: 0.85,
			name: "基准利率85折(4.17%)"
		},
		{
			value: 0.88,
			name: "基准利率88折(4.31%)"
		},
		{
			value: 0.9,
			name: "基准利率9折(4.41%)"
		},
		{
			value: 0.95,
			name: "基准利率95折(4.66%)"
		},
		{
			value: 1.05,
			name: "基准利率1.05倍(5.15%)"
		},
		{
			value: 1.1,
			name: "基准利率1.1倍(5.39%)"
		},
		{
			value: 1.15,
			name: "基准利率1.15倍(5.63%)"
		},
		{
			value: 1.2,
			name: "基准利率1.2倍(5.88%)"
		},
		{
			value: 1.25,
			name: "基准利率1.25倍(6.13%)"
		},
		{
			value: 1.3,
			name: "基准利率1.25倍(6.37%)"
		}
	],
}